﻿@using System.Web.Optimization
@model FlitBit.Dto.ModelBinding.Sample.Models.IPerson

@{
	ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm())
{
	@Html.ValidationSummary(true)

	<fieldset>
		<legend>IPerson</legend>

		<div class="editor-label">
			@Html.LabelFor(model => model.Name)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.Name)
			@Html.ValidationMessageFor(model => model.Name)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.BirthDate)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.BirthDate)
			@Html.ValidationMessageFor(model => model.BirthDate)
		</div>

		<div class="editor-label">
			@Html.LabelFor(model => model.HasBeens)
		</div>
		<div class="editor-field">
			@Html.EditorFor(model => model.HasBeens)
			@Html.ValidationMessageFor(model => model.HasBeens)
		</div>

		<p>
			<input type="submit" value="Create" />
		</p>
	</fieldset>
}

<div>
	@Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
}
